package com.mystore.framework.mail.page.impl;

import com.mystore.framework.mail.page.IMailPage;

public class VerifyMailPage implements IMailPage {
    private String mailPage;
    @Override
    public VerifyMailPage initMail(Object param) {
        mailPage="  <div class=\"container\">\n" +
                "\t  <style>\n" +
                "\t    body {\n" +
                "\t      background-color: #f8f9fa;\n" +
                "\t    }\n" +
                "\t    .container {\n" +
                "\t      max-width: 480px;\n" +
                "\t      margin: 0 auto;\n" +
                "\t      padding: 40px;\n" +
                "\t      border: 1px solid #ccc;\n" +
                "\t      border-radius: 5px;\n" +
                "\t      margin-top: 100px;\n" +
                "\t      background-color: #fff;\n" +
                "\t    }\n" +
                "\t    .logo-img {\n" +
                "\t      width: 60px;\n" +
                "\t      height: 60px;\n" +
                "\t      margin-bottom: 20px;\n" +
                "\t    }\n" +
                "\t    h2 {\n" +
                "\t      text-align: center;\n" +
                "\t      margin-bottom: 30px;\n" +
                "\t    }\n" +
                "\t    .verification-code {\n" +
                "\t      font-size: 24px;\n" +
                "\t      font-weight: bold;\n" +
                "\t      color: #007bff;\n" +
                "\t      text-align: center;\n" +
                "\t      margin-bottom: 30px;\n" +
                "\t    }\n" +
                "\t    .btn {\n" +
                "\t      width: 100%;\n" +
                "\t    }\n" +
                "\t  </style>\n" +
                "    <h2>MyStore 邮件验证码</h2>\n" +
                "    <p>您好，您正在注册 MyStore 账户。</p>\n" +
                "    <p>您的验证码是：<span class=\"verification-code\">"+param.toString()+"</span></p>\n" +
                "  </div>";
        return this;
    }

    @Override
    public String toString() {
        return mailPage;
    }
}
